export const constrouters = [
    {
        path: '/login',
        component: () => import("@/views/login/index.vue"),
        name: 'login',
    },
    {
        path: '/home',
        component: () => import("@/views/home/home.vue"),
        name: 'home',
        children: [
        ]
    },
    {
        path: '/404',
        component: () => import("@/views/404/index.vue"),
        name: '404',

    },

    {
        path: '/',
        component: () => import("@/views/framework/index.vue"),
        name: 'framework',
        children: [
            {
                path: '/',
                component: () => import("@/views/main/main.vue"),
                redirect: '/main/all',
                needLogin: true

            },
            {
                path: '/main/:category',
                component: () => import("@/views/main/main.vue"),
                name: 'main',
                meta: {
                    title: '首页',
                    needLogin: true
                }
            },
            {
                path: '/share',
                component: () => import("@/views/share/index.vue"),
                name: 'share',
                meta: {
                    title: '分享',
                    needLogin: true
                }
            },
            {
                path: '/settings',
                component: () => import("@/views/set/sysSetting.vue"),
                name: 'settings',
                redirect: '/settings/sysSetting',
                meta: {
                    title: '设置',
                    needLogin: true
                },
            },

            {
                path: '/settings/sysSetting',
                component: () => import("@/views/set/sysSetting.vue"),
                name: 'sysSetting',
                meta: {
                    title: '系统设置',
                    needLogin: true
                }
            },
            {
                path: '/settings/userList',
                component: () => import("@/views/set/userList.vue"),
                name: 'userList',
                meta: {
                    title: '用户管理',
                    needLogin: true
                }
            },
            {
                path: '/settings/fileList',
                component: () => import("@/views/set/fileList.vue"),
                name: 'fileList',
                meta: {
                    title: '文件管理',
                    needLogin: true
                }
            },


            {
                path: '/recycle',
                component: () => import("@/views/recycle/recycle.vue"),
                name: 'recycle',
                meta: {
                    title: '回收站',
                    needLogin: true
                }
            },

            {
                path: '/:pathMatch(.*)*',
                redirect: '/login',
                name: 'notFound',
                meta: {
                    title: '',
                    needLogin: true
                }
            },

        ]
    }

]